#ifndef BUILDINGTOOLTIP_H
#define BUILDINGTOOLTIP_H

#include <QGraphicsRectItem>
#include <QGraphicsTextItem>
#include <QGraphicsScene>
#include <QString>
#include <QFont>
#include <QPainter>
#include <QColor>

class HealthBar : public QGraphicsRectItem
{
public:
    HealthBar(QGraphicsItem * parent, QGraphicsScene * scene);

    void setHealth(qreal health);

    void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);

private:
    qreal healthyPixles, infectedPixles;
};

class BuildingToolTip : public QGraphicsRectItem
{
public:
    BuildingToolTip(QGraphicsScene * scene);
    void updateToolTip(QPointF mousePos, qreal health, int people, int infected);

private:
    QGraphicsTextItem * tipText;
    HealthBar * healthBar;
};

#endif // BUILDINGTOOLTIP_H
